# class Car:
#     wheels = 4
#     def drive(self):
#         print('开车方式')
#     def stop(self):
#         print('停车方式')

from class_test.car_test import car

my_car = Car()
print(my_car.wheels)
my_car.stop()
my_car.drive()

print(Car().wheels)
Car.stop('stop')
Car.drive('drive')

class Amphibian:
    name = "两栖动物"
    def features(self):
        print("幼年用鳃呼吸")
        print("成年用肺兼皮肤呼吸")
    class Frog(Amphibian):  #Frog类继承自Amphibian类
        def attr(self):
            print("我会呱呱叫")

class English:
    def receive_eng_know(self):
        print('具备英语知识。')
    class Math:
        def receive_math_know(self):
            print('具备数学知识。')
    class Student(English,Math):
        def study(self):
            print('学生的任务是学习.')